package org.zxn.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.zxn.study.entity.User;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description: UserMapper
 * @Author zxn
 * @Date 2025/7/10 17:06
 **/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * add a new user
     *
     * @param model
     * @return
     */
    int insert(User model);

    /**
     * select all users
     *
     * @return
     */
    List<User> selectAll();
}

